avoid trying to open directories when checking functions for changes