Make `rake dist` dir and file list customizable
Cleanup some code in util.rb

[skip ci]