Fix file tasks/rules in Rakefile