Fix for allowing site to be run from a folder and not just at the route.