Fixing msg file path resolution