kernel: fix conditional handling of ide-support