Fix inflexible resizing

The partition resize logic was replacing any 8 digit number with the new
size. This is not flexible enough. This change adds a better search and
replace pattern, so that it will recognise xvda1 and only replace the
size.