wd.sh: switch test to '-e'

Darwin (BSD) does not have '-a' option for test; using '-e' instead.
wd.sh: remove errant 'f' from sed command
Merge pull request #7 from navien21/master

Fixes OS X file test and typo in wd_remove