Yet another fix for the script path detection