fixed bug with preset default profiles
fixed order of default profile setting
added bundle source jar
prevent NPE
gradle 1.8
more NPEs prevented, for special cases