prevent mkdir from throwing warnings

When using stash with several PHP processes, it happens that though the if-statement did not yet see a directory it exists when you come to the mkdir-statement.