fix setup.sh compatible OS X and linux