Improve Rake tasks so they can be run from master branch.