fixed path handling in static file handler