refs #1, hide warning

is_dir not working on all system :(