Full rewrite of to_mp3.sh

Less buggy, just as awful