fixed issue with spaces in pathname in local scan