Add check for file exists in app:name command

The arguments for replaceIn were all convert to one-argument-per-line style on the way. Look much more readable this way.