Set locale to dirname(), basename() valid