Handle blanks in path when run spm test, fix #839