get path from $0 for old solaris bash 2.05