Added qs params to indexed scripts and templates
Changed parse_spec to output paths in a determinative order