Notify nginx if necessary, rather than restart; fix file mode