Split magpie-common-exports into magpie-common-functions
Support SPARK_LOCAL_SCRATCH_DIR_TYPE to indicate if SPARK_LOCAL_SCRATCH_DIR points to a network drive or local drive.