install: don't create empty dirs when an empty 'foo_PRIMARY' is used