Fix #45 - EPERM bug