Import changes from ruby-build v20141028
Fix broken tests
Need to chdir before running tests of `python-build`
Merge pull request #265 from yyuu/ruby-build-v20141028

Import changes from ruby-build v20141028