bugfix sanitize_path in functions.php