Add promise version of appendFile