Make SETTINGSFILE lookup work on boot.

Have to follow symlinks to get the right basename as
it will be different in /etc/rc?.d and not match the
config file.