move removePrefix and removeSuffix to Utils
add some cblrepo sanity checks, and removeGhcPrefix