tail is broken, use path to handle all platforms