only clean resolution-cache if it exists
remove check for docker and mac osx compat