hash_object() stores file if -w passed
Predicate all code on assumption of process.cwd() state