Made script runable from outside its main directory