fix stop message

On a related note, we should use `file_test('-d')` to check the existence of directories instead of `file.exists()`, although in most cases this does not hurt.