Fixed the location in which middleware looks for static files