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