split gpio code into gpio.c
split is_file/is_dir into fileutil.c