COMMON: update basdir handling