Fixed path of data directories, switched positions of dataDir and public

Path should be "/data/<public>" and not "/<public>/data" at least
according to caller which executes the scripts with arguments "<dataDir> <public>"
and not the other way round.