Cache main_dir and contents_dir to work around a weird bug.
Cache main_dir and contents_dir to work around a weird bug.

Sometimes, Project#dir would end with contents/whatever doubled,
e.g. "dixi/contents/rubygame/contents/rubygame".
Seems to affect only on Ruby 1.8, not 1.9.

jacius/dixi