Added the ability to use the instance path instead of the app.root_path