Restoring system default loca by RAII