using builtin os.path.pardir for parent directory.