Fixed running in paths with spaces

And as a side effect removed the hardcoded 'UIAutomationTests' Path component.