Fixing the metrics file accross logoff/logon

 * When logging off and logon again, the metrics file
   was stuck with the previous user permissions and hence was never
   updated again. This change fixes the problem.