Fixed file names being trimmed when included in war. Thanks @augier\!