gem local installation

Added ```cwd``` argument to simplify local installation.