Fixed OSError "No such file or directory: None" and make IOError consistent.
The None error occurs when the current working directory is no longer
available, e.g. because it was removed in another shell.
# should print nothing# should print ? b/x? b/x# should print A b/xA b/x# should forget b/xforgetting b/x# should print nothing