core.fm: use "basename" instead of "path" in sxiv hook

This allows to pass more arguments before the argument list gets too
long.