build-support: Add writeTextDir

This `writeTextFile` based helper function is especially usefull for writing a
bunch of configuration files to root of the output folder
Merge branch 'pkgs/build-support/writeTextDir' of git://github.com/offlinehacker/nixpkgs

build-support: Add writeTextDir