_php5_mcrypt_installed() {
  if [[ -a "/etc/php5/mods-available/mcrypt.ini" ]] ; then
    return 0;
  else
    return 1;
  fi
}

_php5_mcrypt_up() {
  eval "sudo apt-get install php5-mcrypt"
}

_php5_mcrypt_installed() {
  return `dpkg -s php5-mcrypt 2>/dev/null`;
}

_php5_mcrypt_up() {
  eval "sudo apt-get install php5-mcrypt"
}

--- 
+++ 
@@ -1,9 +1,5 @@
 _php5_mcrypt_installed() {
-  if [[ -a "/etc/php5/mods-available/mcrypt.ini" ]] ; then
-    return 0;
-  else
-    return 1;
-  fi
+  return `dpkg -s php5-mcrypt 2>/dev/null`;
 }
 
 _php5_mcrypt_up() {
Change how to determine if mcrypt is installed
