fix open-files-at-end not working properly

due to previous refactor where i extracted the actual 'open' shell
command out of the method in question.