check file exist before source it