Perform basic error checking of file-level `dynamic/1` and `discontiguous/1` directives