Fix require automatically
Merge pull request #554 from kazupon/fix/autorequire

Fix require automatically, closes #554