Fixes to ensure_dir() and gitjk install.