Fix issue with detecting the cache changing for imported files