fix permission; use PATH_TRANSLATED when possible