Added support for trailing slash plugin_dir_path()