directories should be configured before $(OSFAMILY).mk
Merge pull request #811 from jan76/makefile_fix

directories should be configured before $(OSFAMILY).mk