Update resizepfile.sh

Initial works by 01micko
Merge pull request #263 from zigbert/patch-5

Update resizepfile.sh