Using dirname instead of /home/mero

I think you know for what this should be.