Fix installer script error evaluation