rebind: handle cwd, create $objtype/^(bin lib) directories in repo root instead of /tmp (for cross compile)