Fix pathJoin with lua 5.2

According to http://www.lua.org/manual/5.1/manual.html#7.1, this was
already deprecated in 5.1.

The fix used is a simple way to make it work in both.
Merge pull request #2 from faho/master

Fix pathJoin with lua 5.2 --
Works :)