add '.bak' to -i option for windows perl bug