Fixed running .sh scripts from different directories

This should fix the problem described in the following card:

https://trello.com/card/running-install-sh-from-within-another-folder-e-g-install-sh-from-inside-kalite-means-it-can-t-find-the-python-sh-script/507303596f46cc9a38c1c94f/883