Add create directory helper functions.