check for file before sourcing