Didn't return to parent directory after writing output.