don't use depth=1
move kernel version fetch after complete compilation