Script now obeys the wordpress XML file passed as command line arguments as well as uses the target folder passed.