Move creating of logfile to useradd and check script launch