Added fallback to import in case compiling a package fails.