WUtil: Be more strict about base directory for wmkdirhier()