--- a/trunk/cforge/cforge/Package/CFORGE/Scripts/cds_script.py
+++ b/trunk/cforge/cforge/Package/CFORGE/Scripts/cds_script.py
@@ -44,6 +44,8 @@
 	for file in os.listdir(profiledir):
 		if file.endswith(".profile"):
 			lastprofile = file.replace(".profile","")
+		if file.endswith(".profile.xml"):
+			lastprofile = file.replace(".profile.xml","")
 	#print(lastprofile)
 
 	# exe
@@ -89,6 +91,8 @@
 	for file in os.listdir(profiledir):
 		if file.endswith(".profile"):
 			lastprofile = file.replace(".profile","")
+		if file.endswith(".profile.xml"):
+			lastprofile = file.replace(".profile.xml","")
 	#print(lastprofile)
 
 	# exe