updated to make filename pattern matching more flexible

I updated the checks for the kernel and initrd filenames to be a little more flexible.  With the additional patterns to check for, the function will now handle filenames that start with vmlinuz* and initrd*.