Change global variables location.
fix race cleaning up lock files