Replace rm by unlink; fixes #1