Programmatically change the app dir.