Fix issue #112, replaced bash condition -f with -e