pre_pkg_file_install command update to take code aswell as string

for consistency -- file_install allows it but pre_pkg doesn't