fixed check for ruby role