Fix the issues #420 (the language selector) and #427 (the undefined constant: base_path).