Fix library extension guessing for MoarVM

Without this patch, is native('libfoo') would try and load libfoolib.so
instead of libfoo.so