support STAGEDIR
Merge pull request #304 from reallyenglish/10_1_tomoyukis

support STAGEDIR