Made most log messages go to stderr so that the return value is just the new filename - useful for outside automation