Improve index.js special case handling
os.path -> path
Merge pull request #12 from megawac/index-path

Improve index.js special case handling