updating so script can be run globally on mac or linux