get_dir_path bug fixed (size_t -> long)