Added chmod to grade file creation.