get revert dir name from lnpm dir name in revert function