only work with absolute paths. fixes #6