cleanup path building in rake task