fixed bug in spn_vm_addlib_* functions

I added a check so that an old library/module is not deleted a when new one is added with the same name.
Should there be another tab here?