Don't attempt to parse blank lines.

If a line of a script is empty or only contains whitespace, it shouldn't be
parsed.
Handle permission denied errors for scripts.