more portability fixes and a prereq check for gnu tar