remove function not available on Ubuntu 12.04