Cleaned up get_bin_paths_func error handling