Update loader.php

should use SCRIPT_FILENAME instead of PHP_SELF to always get full absolute path.