Fix rake task exeption in Travis