Fixed issue causing errors in tasks in nested targets to not cause the build to halt. Also fixed profiling getting confused by nested targets (#5).