support default to ./index.[ext]
Merge pull request #27 from demohi/master

support default to ./index.[ext]