Fixed issue with list.bash

Fixed in an issue with list.bash where spaces in the file names would
cause undesired behavior.