ccd: simplify code (no cut, which broke OS X) and only search ~/code