prefix_to_path allocated memore, callers (mostly in DEBUGMSG) never freed - now using static char buffer