Fix #316 - switch to EISDIR from EPERM in lib/conflict.js