better add ^ before the preceding .
tar --xform s:'^./':: -czvf ../myarchive.tar.gz ./
tar --xform s:'^./':: -czvf ../myarchive.tar.gz ./
OR, all "/" in the full pathname inside the archive will be removed unless "/" is the end of the full pathname.