path: fix segv on clang due to invalid return type (size_t returning fun without return segfaulted on clang3.2, 3.3 on x86_64)