Fixed createDirectoryPath routine for OS specific handling.  Also was not
using last directory passed in.