Generic way of handling static directory. Not working yet.