Build: Put RAILS_ENV == "test" guard around brakeman gem

Signed-off-by: Tim Serong <tserong@suse.com>