Add parentheses to cucumber step definitions

Follows the new recommended syntax for step definitions. The old syntax
was ambigious and caused warning from ruby syntax checker.
Check for test environment in ENV instead of Rails.env