Fix returncode to be the exit status