fixed mac working directory issues