fix bug for filenames with multiple dots -> remove only the .js.dust extension