A semi-ugly fix to handle caching of required statements with '../' in them.