Fix a typo in getting appletdir.
Fix suddenly outdated import method.