Build gem correctly

Change-Id: I5392ee2337cef9392d736cd78ed98de8feb9670e