You can simply install the script to the /shop/ folder and the installation will make sure that it will work from there.