JS backend: test for KT-6277
JS backend: fix KT-6277 kotlinc-js: IllegalArgumentException when -output is a file name without directory prefix

#KT-6277 Fixed
Buildserver auto merge