(local reg form) Fix for relative paths