changed lock file dir. only source /etc/init.d/functions if the file exisits