Test for local file before injecting config