increase some logic

some path sectors may have dot.
and some extensions may have dot,too. 
such as: 
/test.a/test
.tar.gz