fix does not accept ranges and path basename is . or / bug
Merge pull request #1 from xiangzhai/master

fix does not accept ranges and path basename is . or / bug