Fixed source preparation script to support whitespaces in the directory names.