Adjust the script so it can work from any directory

Use the shell script's directory as the location to look for the preload .so file.