Code now uses proper lock directory