more portability fixes and a prereq check for gnu tar
drwxr-xr-x - openwrt