Remove import lines from puppet files before parsing

Since a temp file is passed to the puppet parser import commands cause a parsing error, so we remove them, to side-step this a a generally safe manner.

See: 
http://projects.puppetlabs.com/issues/9670
http://projects.puppetlabs.com/issues/9670#note-14