Working symlinks: Using script filename instead of __FILE__

I use a git repo for plugin management and symlink the fever directory to the plugin directory.
By using __FILE__ this does not work because __FILE__ is the path after symlink resolution. Moving to script_filename solves this problem.