Fixed open_basedir compatibility with is_dir()/is_file() functions