rough  bandage to make ajoke work on MacOSX
Tidied code
bin/ajoke-get-hierarchy.pl: Get rid of the grep -P option, it's not good for Mac
bin/java-add-fallback: just use positional arg
bin/java-flatten-cache: do not use -P for grep, not good for Mac
bin/mkgtags: be quiet, this is for my own use currently
bin/relative-link: use the shell builtin getopts for handling. getopt is in util-linux, which is not found on Mac (unless with Macports)
bin/relative-path: relative-path /home/bhj /home/bhj should be ./ instead of ../bhj

Signed-off-by: Bao Haojun <baohaojun@gmail.com>
Merge branch 'aki-s-darwin13.4.0'