cat-file: make it work in a subdirectory.