Ignore files with a trailing ~

Change-Id: I0ae432dd00dd8c070a55e4bb1079e876eb7db684
Reviewed-on: http://review.couchbase.org/44554
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>