Added fallbacks to flux.sh in case realpath is not available (fixes #144)

The bash script now uses $BASH_SOURCE to find out its name. If
`realpath` is not available `readlink` is tried. If this is not
available the script attempts to extract link targets from ls
output. Link resolution is now only attempted if $BASH_SOURCE
contains a soft link.