create getcurrentconfigpath for use by other commands