Update the application directory.