One newline less (major changes!)
Fix of a potential critical bug: use always realpath(2) and do not delete own files