fix: make check for absolute path OS-independent