Fixed parameters swap in _mkFile. Thanks to Bernek János<bernekj@gmail.com>