Fixes "geoip.custom_directory can't be set via ini_set()" bug

Reference: https://bugs.php.net/bug.php?id=61607
increase test coverage