Make sure to report an error if chdir(/) fail.