Fix path issue when path is specified using a . (dot)