fix warning when testing for presence of gem