fixed the test script to accept paths with spaces in them