build obj/dest directory names from parameters