Add function normalize(), copied from Luarocks 2.0.9-1.
Add function path(), copied from Luarocks 2.0.9-1.
Improve performance of function normalize().