functions.sh: parse_pkg_lists: only invoke sed if given any files to process.

If no files are given to `sed` (this may legitimately happen, e. g. in
get_profile_data), it tries to read stdin, which is wrong.
functions.sh: explicitly specify $BUNDLE_ROOTDIR where possible.