fix path for jar, make sed actually work on OSX

Author: Nick Lanham <nick@afternight.org>

Closes #264 from nicklan/make-distribution-fixes and squashes the following commits:

172b981 [Nick Lanham] fix path for jar, make sed actually work on OSX
SPARK-1345 adding missing dependency on avro for hadoop 0.23 to the new ...

...sql pom files

Author: Thomas Graves <tgraves@apache.org>

Closes #263 from tgravescs/SPARK-1345 and squashes the following commits:

b43a2a0 [Thomas Graves] SPARK-1345 adding missing dependency on avro for hadoop 0.23 to the new sql pom files
fail all jobs when DAGScheduler crashes for some reason
logging error reason
minimize the influence to the jobs
kill application when the exception was thrown
check if DAGScheduler is shutdown in SparkContext
add test case
make code more testable and fix test cases
stop the eventActor from supervisor
create eventActor in the constructor of DAGScheduler
comment clean and logging
code clean