added check for argument on ruby env