Fixed a bug if `mkdir -p` was called with existing dir