Make sure skeletons are not overwritting cached files.

Skeleton files were being written even when a cached file was not overwritten.