--- shadowbox.install
+++ shadowbox.install
@@ -29,6 +29,7 @@
   switch ($phase) {
     case 'install':
     case 'runtime':
+    $shadowbox_path = 'sites/all/plugins/shadowbox';
     $path = variable_get('shadowbox_location', $shadowbox_path);
     if (!file_exists($path)) {
       $requirements['shadowbox'] = array(


--- shadowbox.module
+++ shadowbox.module
@@ -348,7 +348,7 @@
function shadowbox_construct_header() {
  global $language;

-  $module_path = drupal_get_path('module', 'shadowbox');
+  $shadowbox_path = 'sites/all/plugins/shadowbox';
  $shadowbox_location = variable_get('shadowbox_location', $shadowbox_path);

  $images = variable_get('shadowbox_supported_images', shadowbox_get_types('image'));