If that matches nothing -- eg, a broken install -- you will get a string with a literal `*` in it back.  You should probably check for that case and fail with a clear error message.