base-files: gpio switch: check if direction can be set