fix creating of misc directory if it doesn't exist