fixes #343

i've managed to make a fix, which allows a non-existing directory name "0" to be created