swapped ternary with if else and made stderr point
to console in unlink.pl open() call