Fixed syntax for ruby script