Fixed issue with spaces in path

Refs #10331