Resolve static directory before anything.