issue #115 - fixed require bug in standalone mode