New credential handling for create dir tool