I guess I had troubles with this command because it is executed BEFORE ruby environment is installed. So in my case `$ruby19_dir` was empty. However it could work as expected if it is executed in a later stage. I solved the problem by escaping the variable. This way the variable is calculated every time I start a new shell.