Update errors in script

- Fix syntax error where sourcing the wrong file location
- Setup some defensiveness

Issue: #8