This much untested code makes me sad. But I fixed the bug whereby no rake tasks worked because of the require line.