Cleanup and fixed asset urls when using subdirs