Set ext_conf_dir to /etc/php5/mods-available for ubuntu >=12.10

This should take care of the new configuration directory structure for php 5.4 on ubuntu while keeping backwards compatibility with older ubuntu versions.