handle `Permission denied` for `mkdir`