Cleaning up model_dir defnition in undefined case, removing assumption that node_modules has an app_config module