use programpath for regular version, cwd for debug version (maybe should search more dirs?