update Rakefile for deploying final releases

also make it project-agnostic