Issue on detection of options.root

In my case, i have .js files with parameters:

´´´ ruby
<script type="text/javascript" src="/jq/markitup/jquery.markitup.js?v=1.5.3.1925"></script>
´´´

Your detection doesn't work with that format ;)

Best Regards,
Alexander Bulei