Fix extension local file detection