Add developer option to override device file to use.

This is only enabled when the TEST macro is defined for security reasons.