terminate sed p in __rvm_db_get, fix #2924, fix #2921