Clean given sgcollectoptions filepath (#3582)
Clean given sgcollectoptions filepath (#3582)

* Clean given filepath first, before using to allow for cross-platform paths.

* Use os.IsNotExist() and return known error

* Wrap error from os.Stat

ceejatec/sync_gateway,couchbaselabs/sync_gateway,couchbaselabs/sync_gateway,couchbaselabs/sync_gateway,ceejatec/sync_gateway,couchbaselabs/sync_gateway,ceejatec/sync_gateway,ceejatec/sync_gateway