further improves main-PID detection by taking /proc/%d/exe into account