Forked the dependency fetch stuff to try and speed it up a bit
removed the waitall, its easier and cleaner to just perma sleep and let the chld sig handler take care of business
See if more threads = faster, handle any Errno::ECHILD errs we get while waiting for our children.
Close template files after writing so that they get flushed to disk. Relying on the process closing to flush IO buffers breaks running in 'daemon' mode.