Fix a couple of bugs. Tilde paths should work now.