ensure alternatives’ parent directories exist