hack to make gbf function work with absolute paths on .... windows