Bugfix: function not splitting path properly.