modified file_util

add some function declarations and PathExists implementations