Issue 10035: portably strip leading path separator characters

Addresses bug where ROOT_DIR was discarded and salt.config.get_id() only looks in /etc/salt/minion_id.