Chdir to specified directory and xopen

When specified, `xopen` will do a `workon` before opening an Xcode project/workspace