Auto-detect linux or mac platform for package.sh