Fixed errors when starting cassandra 

Made a few changes:
1) Changed how appId is contructed.  first dash is too broad. - modified it so it uses the substring all the way to the last dash (-)
2) Removed the max 3 limit on available racs.
3) Fixed sudo error when restarting cassandra - removed the -E flag.