-Fixed --profile switch causing an exception

-Fixed a bug that would cause the first build to break a chunk to fail if the chunk was the only thing being built in that build.
-Some hardening and additional logging