Try setting it from…
avast! UI > Settings > Antivirus > Scroll down to Exclusions > Appropriate tab [url/file] etc > [enter excluion] and then add.
The setting mentioned above works for all shields and on demand scans.