When you are using sudo -i to become root, then typing cd $HOME you are going to root's home folder, not matt's home folder, therefore ipodpatcher is not in the directory you are in.
Instead run sudo ./ipodpatcher as matt, or even better, use Rockbox Utility.