Ignore leading and trailing slashes; added multiple-test-file support to
test script.