Adjust the script so it can work from any directory

Rerolled without echo