Revert "checking sdcore or free5gc directory exist in a image"

This reverts commit dd579db39550a0d01e5e69429bbe8dc5235ad25e.

Reason for revert: <CI is not picking new helm charts so no use of doing this helm chart change>

Change-Id: Ie5572cc2231795ad1b2f576d699a573b74e012a4
diff --git a/5g-control-plane/templates/bin/_amf-run.sh.tpl b/5g-control-plane/templates/bin/_amf-run.sh.tpl
index cdc0377..ce0d310 100644
--- a/5g-control-plane/templates/bin/_amf-run.sh.tpl
+++ b/5g-control-plane/templates/bin/_amf-run.sh.tpl
@@ -6,21 +6,12 @@
 
 set -xe
 
-DIR=""
-if [ -d "/free5gc/amf" ]; then
-  DIR="/free5gc"
-  echo "free5gc directory exist" 
-fi
-if [ -d "/sdcore/amf" ]; then
-  DIR="/sdcore"
-  echo "sdcore directory exist" 
-fi 
-
+IMGPATH={{ .Values.config.imagePath }}
 {{- if .Values.config.coreDump.enabled }}
-cp $DIR/amf/amf /tmp/coredump/
+cp $IMGPATH/amf/amf /tmp/coredump/
 {{- end }}
 
-cd $DIR
+cd $IMGPATH
 cat config/amfcfg.conf
 
 GOTRACEBACK=crash ./amf/amf -amfcfg config/amfcfg.conf