Update cache
command to handle directories
#360
Merged
cache
command to handle directories
#360