Check if files exist before sourcing