build: error fix KERNDIR and output directory