Fix xlocalize dir with extension name

Fixes Issue #3

cc @baracoder

Can you check out this branch on this fork of localize and let me know if that fixes things? If so I'll merge and publish and then get to work on sprucing up this module. :)