readlink and __FILE__ fix