Don't overwrite existing .sackrc

Optimized awk loop in-case thousands of matches are found
Now if sack__cwd is empty, use pwd