Shell script: using base_dir instead of PWD. Fixing problem with Jenkins