fix creation of build dir