Update bash shell script to use -g to get directory from wd - this ensures that a fixed priority to bookmark name, bookmark directory and local directory