Fixed local file detection