Replaced MacOS sed with gnu-sed and introduced 'selecta'

- Also fixed up ctags command to avoid duplicated tags generated for same files