Fix the condition that an error may be raised by space contained in POSIX path