Be a bit smarter about prefixing static dirs with the root