More strict checks before sourcing files