Fix module uninstall bug (write changes after removing tags).
Don't hardcode source and resource paths.