Fixed ruby call to env