use ./index instead of only .

I don't know, but this require('.') never work for me on Ubuntu (especially Mint 14)