auto detect application path to eliminate using hardcoded prefix