Add execute permissions to scripts
Reversed the test for failure checks.

Just goes to show that no matter how long you've been coding, you can
always screw up the simplest things.