fix double slash in file path
detect and report bad function/procedure