fix bin require path for index