tidied up version of patch to use fdisk instead of file to catch extended partition

doesn't matter about if partition is a file because this will never happen with extended partition
so only perform this check if path in /dev