Add 'makeDirectories' function to utilities module