Removed .split('.') ... .join that was removing '.' form the original path.