use relative symlinks
improve grep argument parsing