Minor adoptions to remove unnecessary variables

Add requested fixes.

There are still some more improvements which could be made, e.g. checking if pacman is already running. Taking a look into this one.