Resolve issue with root_dev not being properly determined

Resolves issue https://github.com/flegmatik/linux-rootfs-resize/issues/5