Modified location for pid lock file.
Fixed bug in pid lock.