fixes check for line addition

using #grep when then have to ask the result if it's not #empty?
using #any? makes sense, but we should still use a regex instead of
performing a string equality test