replacing shell scripts with simple Rake file