Added a fix that worked for me with a complex maven build

This is an update of a previous pull request that is based on asset pipeline 2.0.13.