J/psi production and absorption in p + A and d + Au collisions