create all directories for mount point and cache lcoation in the pathway.