Fixed resource access path bug
Added sleep in uninstall script