support OSX in peru.sh