Infer source paths if possible.