Use recursive version of ensureDirectoryExists
Cleaner executor code