Make reset.sh compatible with Mac