remove ifile and isdir tests from Filename and Path