added in the gz extension for the move_file_if_exists function