Check if the app is enabled and the app path is found before trying to load the script file