Make test-path-utils more robust against incorrect use