Unix: When a bash script asks "Where am I?"