Fix regex for nearest spec and inspecfile