extend unit test to directories starting or ending in whitespace