Corrects path to templates, static and media