Fixed uninitialized variable causing unnecessary pull
Fixed system calls to use bash to prevent "source" from failing
Merge pull request #2 from capisce/master

Some fixes to build