Fixed an issue withs cd / and cd ~ commands, added support for login.