Change the way to create lock file from using touch to using ln