diff --git a/sms_twilio.module b/sms_twilio.module
index f4c1ecd..6b8300d 100755
--- a/sms_twilio.module
+++ b/sms_twilio.module
@@ -110,7 +110,12 @@ function sms_twilio_command($command = 'auth', $data = array(), $config = NULL,
   }
  
   // Include the PHP TwilioRest library
-  require_once $config['sms_twilio_path'] .'/twilio.php';
+  if (strpos($config['sms_twilio_path'], '.php') === false) {
+    $twilioLibrary = $config['sms_twilio_path'] .'/twilio.php';
+  } else {
+    $twilioLibrary = $config['sms_twilio_path'];
+  }
+  require_once $twilioLibrary;
       
   // Twilio REST API version
   $ApiVersion = "2008-08-01";