Fix for getting application path