add -- to terminate basename option (in case -bash starts with -)
Merge pull request #3 from tdwong/master

add -- to terminate basename option (in case -bash starts with -)