Make get_external_display return correct exit code