Fix beagrep for short output format

perl's glob() seems to be not reliable when the path does not exist.