Fix makeDirectory and directory lists