Add swap files bash function.