Fixed require.paths handling