Check if device exists before creating ethernet interface.
Fix ticket #10183.
Check the given path for ".."