minor fixes

Hi,

The first patch is allows the script to resolve it's proper install path, in case it has been symlinked to somewhere else.

The second one is minor tinkering with the config file parsing to allow grep to match the only the exact keyword, at the start of the line thus preventing false positives from comment lines, in case of a future new keyword contain the current one.