Improved Rakefile to check for existing files.