Moved the set_acl() call after the do_chmod() call again.