demo: change strategy for uninstalled detection
Instead of looking for the -uninstalled suffix in the program name
(that requires renaming the binaries after the installation), check if
the program is called from BUILDDIR.
This allows to switch from autotools to meson, where the latter does
not handle renaming installed file properly:
https://github.com/mesonbuild/meson/issues/4019