Renames pre- and post-files and adds existence check