try to delete the old files before the new files are copied to their place

Signed-off-by: Patrick <support@flatcore.de>