Updating scan_requirements_with_grep to get all require statements from the line

Fork of #737 in order to add tests