Fix issues with gem called from chef