Fix for Issue #17. Import target parameter fails when a file extension is provided