Fixed error, where the replace was not applied to the userdir value