Removed some relative paths and other cleanup

CentOS 6 should be working ok from brg now (just with some features
missing). CentOS 5 will require some query changes because its sqlite
doesn't support recursive triggers.