put lockfile into var directory and rebuild