fixed issue with the execute history command
rewrote chdir to allow support for more Unix-like arguments "." and "-"