Handle situation when multiple files are given to the script.
Fix finding realpath taking into account, that filepath can be a symlink.
Fix situations when path to the file doesn't exist and file cannot be created.
Fix some mistakes in previous commit.
Merge branch 'refs/heads/master' into pr6

Conflicts:
	rmate
Merge pull request #20 from aurora/pr/6

Pr/6