rename files + catch popen exceptions