Changed how script handles resources.md