Run token generating under root

Foreman user does not have permission to write the file. We set correct
permissions immediately after.