--- /usr/lib/live/build/binary_debian-installer.orig	2013-04-30 06:28:19.000000000 +0000
+++ /usr/lib/live/build/binary_debian-installer	2014-02-21 21:04:35.000000000 +0000
@@ -528,11 +528,11 @@
 
 		# Drop the packages already installed that d-i doesn't explicitely need
 		_REMAINING_PACKAGES="$(echo ${DI_FIRMWARE_PACKAGES} ${DI_REQ_PACKAGES} | sed -e 's# #|#g')"
-		_REMAINING_PACKAGES="$(sed -n -e 's|Package: ||p' chroot/var/lib/dpkg/status.tmp | grep -E -v \"^${_REMAINING_PACKAGES}$\")"
+		_REMAINING_PACKAGES="$(sed -n -e 's|Package: ||p' chroot/var/lib/dpkg/status.tmp | grep -E -v "^(${_REMAINING_PACKAGES})\$")"
 
 		for _PACKAGE in ${_REMAINING_PACKAGES}
 		do
-			rm -f "chroot/binary.deb/archives/${_PACKAGE}_*.deb"
+			rm -f chroot/binary.deb/archives/${_PACKAGE}_*.deb
 		done
 	else
 		# Download .debs of the required packages
