Auto detect whether initrd is used or not