Fixed warnings when open_basedir directive set

Fixes #184.