move data directory initialisation script to pre_start_nodejs hook