Modify both mkdir_p() function signature, return value, and calling spots to accomodate for the change from os.path to pathlib