Fixes problem with execution bit on cache files when it should only be added to
folders.