check file existence before sourcing