fix upstart, and file permissions