diff: make -O and --output work in subdirectory