removes /dev/stdout as it is not permissiable