Implemented getting homedir and lock file name.