ncm-authconfig: fix pam_update_file problem

fixes #382 
(Sorry my first comment was on the diff so it doesn't show up in the PR page). Please can create this file securely and randomly so the unit tests do not have problem on multi-user systems?