fix length plotlyscriptdirs