girwriter: Derive gir namespace from base name

Instead of using the full filename specified by --gir to derive the
gir namespace, this patch uses only the base name of the file specified by
--gir.

https://bugzilla.gnome.org/show_bug.cgi?id=721452