[REFACTOR PATHS] correcting relative paths in /lib

The gateway executable would only start from the root directory of the project.
These patches change the relative pathing in /lib/processes so that the executable can be run from any directory.