fix exception and dir renaming

RenamerError must be derived from BaseException
fix dir renaming error during argument parsing