Replace custom function with magit-find-file

This package replaces the basic functionality I made myself.