Add '-f' to readlink to fix its usage on non-link files
When readlink(1) without any options is called agains a non-link file,
it prints nothing and returns an error. And then basename(1) would also
fail. Fix this issue by adding the -f option to readlink(1).
Signed-off-by: Aaron LI aly@aaronly.me