Update notes for submitted changes

* Check the permissions only when run as a script.