Should test for the parent directory instead of itself, otherwise mkdirs
fail