Correctly pass os.PathError from fs mock Openfile function)