Update archive_cleanup.sh

Made changes to cleanup archived WAL file as follows:
1. if %r value is greater than copied WAL file, then cleanup the WAL file since LAST_COPIED_WAL.
2. If %r is less than copied WAL file then clean you the WAL file based on %r.