Improve static files handling