Splits a file with multiple expression statements under one global into multiple files with CommonJS headers