Fixed rm toy: Checked whether path doesn't indicate to directory befere unlink (some systems allow to remove directory by unlink).