fixing spec infer for paths which contain a period