Improvements on linuxdeploy.sh and macdeploy.sh