dirname() works directly on  $_S[ 'SCRIPT_NAME' ]