Fixing cleanup snapshots command on some MySQL versions

Was failing on mysql  Ver 14.14 Distrib 5.5.32, for Linux (x86_64) using readline 5.1