make sure any path to directory is able to be created