add -r option to bin directory creation