Launch editor directly on linux/darwin instead of 'sh -c'
copy profile when rename failed