Trying to resolve bug for Directory creation