fix rc search/merge logic to avoid problems on windows. closes #174