Fix error-handling if AtomicCmd.run is given an invalid directory.