addressing problems seen in production.
* used a real world situation to debug and tighten up nuke_directory
* turned nuke directory into a script module.