File path addition done using File object rather than manipulating string.

Rather than using a string manipulation operation, having a file object to join paths. 
It is also recommended because this can give user power to define his own directory from where shards settings should be picked up.