filesink: fix handling of non-existing paths with musl