Fix up issues when accessing from file://