Removing hardcoded paths to enable porting

Hi there, 
I'm working on a port (just the GUI part for now) to RPM-based distroes.
I've replaced hardcoded paths with a search function to enable running from source on distroes that have different ideas about where stuff goes, for example '/usr/lib64' on RedHat* distros.