--- a/trunk/skins/Cavendish.deps.php
+++ b/trunk/skins/Cavendish.deps.php
@@ -7,6 +7,5 @@
 
 if ( ! defined( 'MEDIAWIKI' ) )
 	die( 1 );
-global $IP;
-require_once( $IP .'/includes/SkinTemplate.php');
-require_once( $IP . '/skins/MonoBook.php');+require_once( dirname( dirname( __FILE__ ) ) . '/includes/SkinTemplate.php');
+require_once( dirname( dirname( __FILE__ ) ) . '/skins/MonoBook.php');