more robust mk_dir
adding backward compatible interactive option
Merge pull request #12 from mfittere/master

speed ups