build fix - if no custom dir, make hangs