Fixes application path for iOS 6
Fixes application path if app is in subdirectory.