Use correct identifiers for purple callback actions
Add extra libs to the list of libs
Use bash, as pushd and popd are not sh builtins