dir_ensure with sudo option