Use cp -R instead of cp -r due to posix 1003.1-2004.