try to create state dir on startup
make sure correct ruby is on PATH
set the correct content-type when signing