Removed caching feature of wmpipe-fb.sh
Replaced calls to basename and dirname in favor of string manipulation
Replaced heredoc with echo statements to take advantage of shell builtins