Do not move teporary file wthie in loop

Signed-off-by: Mahyuddin Susanto <udienz@gmail.com>