only expand script directories when required