path: fix locale_path

This is a regression since 4410312eb1fea1d0e58eb43c49e1d9d0952bf7e3.