Moved all shard code to one file. Fixed #5992
Oops, forgot the dme.
Use \the macro
Use absolute paths
Merge pull request #5994 from GinjaNinja32/shards

Stepping in shrapnel fix and unification of shard code