Make conversion of edit to text file work from web or command line