CGI script passes name of lock file to the shell. The server will not close