JBDS-3185 refactor script so it works for regular projects, projects w/ windows line endings, jbosstools-build-sites, and jbdevstudio-product too