Changing how FileNotFoundError is detected in remotefs to prevent UnboundLocalErrors when excepting it