Fixed path bug if parent path contains ".".