Invoke IO.popen correctly for Ruby 1.9.3

Before this change, tests in gitlab_projects_spec were passing on Ruby
2.0.0 but not on 1.9.3.
Merge branch 'spec_popen_fix_1.9.3' into 'master'

Fix spec failure in Ruby 1.9.3