Made sure relative paths work for php extensions.