Fixed issue of detecting local files in static folder