Shorten file output and input path Fix #3