Instead of rigid foam, consider using SPF insulation, which provides a vapor barrier and good R-value in a single application