Update script to handle removing whitespace from arbitrary paths
closes #4396
Merge pull request #4397 from permcody/whitespace

Update script to handle removing whitespace from arbitrary paths