filepath should not return trailing path separators