Fixing the log redirection and use of username.txt to tmp location. Also
fixed the issue with final blank line in the user_list.csv file.