Fix nginx and upstart templates