Ensure the parent directory of scripts exist.