Fixed path scope, resolved getFilesAndDirectories() issue and restored uninstall output.