fix local bash file check