Run token generating under root

Foreman user does not have permission to write the file. We set correct
permissions immediately after.
Merge pull request #8 from ares/bug/2458

Run token generating under root