Fix for Flask reloading - make sure that the path is clean. This needs
to be fixed, but this hack will do for the short term