Solved it.
The script was installed in /opt/retropie/supplementary/splashscreen/asplashscreen.sh not the one in RetroPie-Setup/scriptmodules/supplementary/splashscreen/asplashscreen.sh
Now it works. Thanks for the help.