Remove dependency on argparse 1.2, use Python included version of argparse.
Use a platform independent method to change the mode of folders and files.