Make appPath dynamic