--- sites/all/modules/swfobject_api/swfobject_api.install	2009-04-16 17:31:04.000000000 -0400
+++ sites/all/modules/swfobject_api/swfobject_api.install.orig	2009-04-16 17:30:29.000000000 -0400
@@ -24,7 +24,7 @@ function swfobject_api_requirements($pha
   $requirements = array();
   $t = get_t();
 
-  if (!(file_exists(dirname(__FILE__) . "/swfobject.js"))) {
+  if (!(file_exists(drupal_get_path('module', 'swfobject_api') . "/swfobject.js"))) {
     $error_message = $t("Please download the swfobject package from !url and place the required files in the swfobject module directory. See README.txt for more info.",
       array('!url' => l('http://code.google.com/p/swfobject/', 'http://code.google.com/p/swfobject/'))
     );
