[SPARK-1395] Allow "local:" URIs to work on Yarn.

Don't distribute resources that have the "local" scheme
in their URIs. Also fix a minor issue where the classpath
for custom log4j config files was incorrectly being set
to include the file's path (instead of its parent).