use -e check instead of ls
Merge pull request #164 from ryanpcmcquen/master

use -e check instead of ls