osx bundle detection fix