Do not add a new line if the working directory is clean
Take into account switches
Replace the add command by the find command