replace - with _ in device files