Remove code duplication and avoid unnecessary AttributeInfo search.
For Travis CI - Use travis_wait function to wrap around rake call.
See https://github.com/travis-ci/travis-ci/issues/2031.
For Travis CI - revert the changes as the fix does not work.
See https://github.com/travis-ci/travis-ci/issues/2031#issuecomment-42103579.
For Travis CI - switch CI build to use OS X build environment.