Resolves failure while building with the --img option when parted is not install