ngcgui: support tilde expansion in PROGRAM_PREFIX