Fix getOptions test for regular-case detached head state (e.g. Travis)