relplaced any occurrence of $HOME with lock_dir