fix for trailing /

fix for trailing / in extension_dir