Fix passing options and add flexibility for component path