fromfilename: fix #460: crash w/ no capture groups