Fix Bash variable assignment.
Make scan.sh executable.