Added base path so all tools work correctly when the script is started from another directory (ie started by /etc/rc.local)