Improve getting default dirs