FIXED startup script to make process selection work both in Linux and BSDs