fixed uninstall function in Rakefile to make :fresh/:uninstall tasks run without errors.

fixed uninstall function in Rakefile to make :fresh/:uninstall tasks run without errors.