Added a function that gets pid of the first process that contains a given name