Minor changes to for use of libs in script resolution (for consistency, should not matter in practice)