avoid creating dir only if it is \".\"