Let the possibility to disable instance metadata collection

Fix #975