Fix Travis build errors while installing gems