Dont use `exit 1` if the script will be sourced.

Refs #1.
Merge pull request #5 from educabilia/1-fix

Dont use `exit 1` if the script will be sourced.