Removing hardcoded paths to enable porting

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.
Merge pull request #165 from ifireball/fedora-port

Removing hardcoded paths to enable porting