pathrewrite - change file:/// paths

This feature allows the user to change absolute paths given with the 
file:// protocol during the publishing run
sp doc now uses LANG variable

It seems that LC_ALL is not set in all shells so we try LANG.