Fixed bug in source paths expansion

Fixed bug that treated source path as a single string, rather than a
list of paths.