updated directory type to work on openbsd