fix for when running in OSX bundle