[!] fix locale detection, pipe error to dev null when no locale is set