Changed createDirectory to be more zen and not kill the program if the directory already exists.