Security fix, only allow access to files outside of the project dir when in debug mode